﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Collections;

namespace Media.Core.Helpers.Main
{
    public class PageContent
    {
        public static string Get(string ControllerName, string PageName, string ContentName)
        {
            ArrayList paramsList = new ArrayList
            {
                new SqlParameter("ControllerName", ControllerName),
                new SqlParameter("PageName", PageName),
                new SqlParameter("ContentName", ContentName),
            };

            var drPageContent = Data.Connections.GetDataRow("Main_Get_PageContent", paramsList);

            return drPageContent["PageContent"].ToString();
        }
    }
}